package tech.runchen.gz5055.oms.modules.system.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 订单明细表
 * </p>
 *
 * @author zzj
 * @since 2023-10-10
 */
@Getter
@Setter
@TableName("order_detail_tb")
@ApiModel(value = "OrderDetailEntity对象", description = "订单明细表")
public class OrderDetailEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("创建人")
    private String createBy;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("更新人")
    private String updateBy;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty("订单ID")
    private Long orderId;

    @ApiModelProperty("商品ID")
    private Long productId;

    @ApiModelProperty("商品编号")
    private String productCode;

    @ApiModelProperty("商品名称")
    private String productName;

    @ApiModelProperty("商品图片")
    private String productPic;

    @ApiModelProperty("别名")
    private String byname;

    @ApiModelProperty("规格型号")
    private String model;

    @ApiModelProperty("厂家")
    private String factory;

    @ApiModelProperty("单价")
    private BigDecimal price;

    @ApiModelProperty("是否核验（0-需核验 1-不需核验")
    private Integer isVerify;

    @ApiModelProperty("数量")
    private Integer quantity;

    @ApiModelProperty("原始数量")
    private Integer originalQuantity;

}
